<template>
  <div>
    <h6>相关产品</h6>
    <ul>
      <li v-for="item in goodsList" :key="item.id">
        <img v-lazy="item.list_pic_url" alt="" />
        <p>{{ item.name }}</p>
        <span>{{ item.retail_price | Price }}</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "WyProjectAbout",
  props: ["goodsList"],

  data() {
    return {};
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="less" scoped>
h6 {
  text-align: center;
}
ul {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;

  li {
    width: 50%;
    text-align: center;
    p {
      font-size: 16px;
    }
    img {
      width: 100%;
    }
    span {
      font-size: 16px;
      text-align: center;
      color: rgb(136, 39, 39);
    }
  }
}
</style>
